<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'beneficio.label', default: 'Beneficio')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="body">
            <g:form method="post" >
                <div class="cabelistlateral"><img src="${resource(dir:'images',file:'seta_cabecalho_20x20.png')}" /> Alteração de Benefícios</div><br/>
                <g:hiddenField name="id" value="${beneficioInstance?.id}" />
                <g:hiddenField name="version" value="${beneficioInstance?.version}" />
                <div class="dialog dadospessoais">
                    <g:if test="${flash.message}">
                        <div class="message">${flash.message}</div>
                    </g:if>
                    <g:hasErrors bean="${beneficioInstance}">
                        <div class="errors erro">
                            <g:renderErrors bean="${beneficioInstance}" as="list" />
                        </div>
                    </g:hasErrors>
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="descricao"><g:message code="beneficio.descricao.label" default="Descrição" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: beneficioInstance, field: 'descricao', 'errors')}">
                                    <g:textField name="descricao" maxlength="60" size="60" value="${beneficioInstance?.descricao}" />
                                </td>
                            </tr>
                        
                            <tr>
                              <td></td>
                              <td class="btsalvarcadastro">
                                  <g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" />
                                  <g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Você realmente deseja deletar o registro?')}');" />
                                  <input type="button" value="NOVO" onclick="location.href='${createLink(controller:'beneficio', action:'create')}';"/>
                              </td>
                            </tr>

                        </tbody>
                    </table>
                </div>

            </g:form>
        </div>
    </body>
</html>
